# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=jfrog-cli
pkgver=2.45.0
pkgrel=7
pkgdesc="JFrog cli"
url="https://jfrog.com/getcli/"
arch="all"
license="Apache-2.0"
makedepends="go"
options="!check"
replaces="jfrog-cli-go"
provides="jfrog-cli-go=$pkgver-r$pkgrel"
source="$pkgname-$pkgver.tar.gz::https://github.com/jfrog/jfrog-cli/archive/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -o bin/jfrog main.go
}

package() {
	install -m755 -D bin/jfrog "$pkgdir/usr/bin/jfrog"
}

sha512sums="
4534d986a27b0d16a423bfe601ec5bef1b8d21c20a92d9b2af3d009831c11cbcff954c13f12799986eb98c4e2035c32c5141e185f62bf0c1e633a5548a770585  jfrog-cli-2.45.0.tar.gz
"
